package com.caigou.bean.cms.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SurveyQuestion implements Serializable {
    private Integer id;
    private String formId;
    private Integer questionType;
    private String questionTitle;
    private Integer isDisplayTitle;
    private Integer questionOrder;
    private Integer isDisplayOrder;

    private String questionDescription;
    private Integer isDisplayDescription;

    private Integer isMust;
    private Integer isLimit;//多选数目限制开关，0不限制，1限制
    private Integer minLimit;
    private Integer maxLimit;

    private Integer regularId;
    private String placeholder;

    private Integer isDisplayOptionOrder;
    private Integer isDisplayOptionDetail;

    private Date createTime;

    private Date updateTime;

    private Integer submitCount;

    private static final long serialVersionUID = 1L;


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", formId=").append(formId);
        sb.append(", questionType=").append(questionType);
        sb.append(", questionTitle=").append(questionTitle);
        sb.append(", isDisplayTitle=").append(isDisplayTitle);
        sb.append(", questionOrder=").append(questionOrder);
        sb.append(", isDisplayOrder=").append(isDisplayOrder);
        sb.append(", questionDescription=").append(questionDescription);
        sb.append(", isDisplayDescription=").append(isDisplayDescription);
        sb.append(", isMust=").append(isMust);
        sb.append(", minLimit=").append(minLimit);
        sb.append(", maxLimit=").append(maxLimit);
        sb.append(", regularId=").append(regularId);
        sb.append(", isDisplayOptionOrder=").append(isDisplayOptionOrder);
        sb.append(", isDisplayOptionDetail=").append(isDisplayOptionDetail);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}